//
//  GuestLoginManager.h
//  ebook
//
//  Created by 吴超飞 on 16/5/23.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EbookNetRequest.h"

@interface GuestLoginManager : NSObject

+(NSString *)guestName;

+(void)loginWithGuest:(void(^)(void))complete;

+(void)autoLogin:(void(^)(BOOL issuc))complete;

+(void)changeUserComplete;

+(void)autoLoginSuccess:(RequestSuccessed)successBlock failed:(RequestFailed)failedBlock;

+(void)loginWithName:(NSString *) userName passsword:(NSString *) password success:(void(^)(BOOL suc))successBlock failed:(void(^)(int stateCode , NSString *failMsg))failedBlock;

+(void)registerWithName:(NSString *) userName passsword:(NSString *) password success:(void(^)(BOOL suc))successBlock failed:(void(^)(int stateCode , NSString *failMsg))failedBlock;

//十进制转十六进制
+(NSString *)ToHex:(NSString *)tmp;

@end
